package cn.cs.client;

import cn.cs.config.CsConfiguration;
import cn.cs.fallback.InvoiceTitleFallBack;
import cn.cs.fallback.RepairEvaluateFallBack;
import cn.cs.pojo.InvoiceTitle;
import cn.cs.pojo.RepairEvaluate;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "cs-order-provider", configuration = CsConfiguration.class, fallback = RepairEvaluateFallBack.class)
public interface RestRepairEvaluateClient {


    @RequestMapping(value = "/getRepairEvaluateListByMap", method = RequestMethod.POST)
    public List<Map<String, Object>> getRepairEvaluateListByMap(@RequestBody Map<String, Object> param)throws Exception;

    @RequestMapping(value = "/addRepairEvaluate", method = RequestMethod.POST)
    public Integer addRepairEvaluate(@RequestBody RepairEvaluate repairEvaluate)throws Exception;

    @RequestMapping(value = "/getAppOrderByOrderId", method = RequestMethod.POST)
    public Map<String, Object> getAppOrderByOrderId(@RequestParam("orderId") String orderId)throws Exception;



}
